package com.njtoyo.taxi.admin.mapper.master.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.ScanRide;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njtoyo.taxi.admin.rest.presenter.business.ride.scan_ride.ScanRideListPresenter;
import com.njtoyo.taxi.admin.rest.presenter.business.ride.scan_ride.ScanRideDetailsPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.business.ride.OrderManageQueryDto;
import com.njtoyo.taxi.admin.rest.wrapper.business.ride.ScanRideWrapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 扫码行程 Mapper 接口
 * </p>
 *
 * @author Dell
 * @since 2021-11-12
 */
@Repository
@DS(Const.PRIMARY_DS)
public interface ScanRideMapper extends BaseMapper<ScanRide> {
    Page<ScanRideListPresenter> selectSweepOrderPage(ScanRideWrapper wrapper);

    ScanRideDetailsPresenter sweepOrderDetails(Long id);

    List<ScanRideListPresenter> selectSweepOrderAll(OrderManageQueryDto dto);

}
